/**
 * 成长分析
 */
import React, { Component } from 'react';
import { connect } from 'dva';
import TabsChart from './components/TabsChart';

class GrowAbilities extends Component {
  componentDidMount() {
    const { dispatch } = this.props;
    dispatch({
      type: 'finance/getCharts',
      payload: {
        dataType: 'GrowAbilities',
        descKey: 'cz',
      },
    });
  }

  render() {
    const tabs = [
      {
        tab: '基本每股收益(同比增长率)',
        key: 0,
      },
      {
        tab: '营业总收入(同比增长率)',
        key: 1,
      },
      {
        tab: '营业成本(同比增长率)',
        key: 2,
      },
      {
        tab: '毛利(同比增长率)',
        key: 3,
      },
      {
        tab: '营业利润(同比增长率)',
        key: 4,
      },
      {
        tab: '归属母公司股东的净利润(同比增长率)',
        key: 5,
      },
      {
        tab: '经营活动产生的现金流量净额(同比增长率)',
        key: 6,
      },
      {
        tab: '净资产收益率(摊薄)(同比增长率)',
        key: 7,
      },
      {
        tab: '归属母公司股东的权益(相对年初增长率)',
        key: 8,
      },
      {
        tab: '资产总计(相对年初增长率)',
        key: 9,
      },
    ];
    return <TabsChart tabs={tabs} />;
  }
}

export default connect()(GrowAbilities);
